import java.util.Scanner;

public class 立方和 {
    public static void main(String[]args){lifanghe();
    }public static void lifanghe() {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第1个数");
        int X = sc.nextInt();
        System.out.println("请输入第2个数");
        int Y = sc.nextInt();
        System.out.println("请输入第3个数");
        int Z = sc.nextInt();
        int S = X*X*X+Y*Y*Y+Z*Z*Z;
        System.out.println("立方和为:"+S);
    }
}
